import request from '@/utils/request.ts';

//登录接口
export function login(data) {
	return request({
		url: '/student/login',
		method: 'post',
		params: data
	})
}
//退出注销接口
export function logout(data) {
	return request({
		url: '/logout',
		method: 'get',
		data
	})
}

//获取用户信息接口
export function getUserInfo(token) {
	
	return request({
		url: '/student/user/studentInfo',
		method: 'get',
		params: {
			token
		}
	})
}
// 修改密码 
export function updatePassword(data) {
	return request({
		url: '/student/user/updatePassword',
		method: 'post',
		data
	})
}
// 模拟登录接口
export function tylogin(data) {
	return request({
		url: '/third/party/check',
		method: 'post',
		data
	})
}
 
// 修改用户组织

export function updateOrg(data) {
	return request({
		url: '/student/user/updateOrg',
		method: 'post',
		data
	})
}
//  查询组织树 
 export function organization(data) {
	return request({
		url: '/admin/user/organization/organizationTree',
		method: 'get',
		params:data
	})
}